

class PtkError(Exception):pass

class	PRO_TK_NO_ERROR	(PtkError):pass	
class	PRO_TK_GENERAL_ERROR	(PtkError):pass	
class	PRO_TK_BAD_INPUTS	(PtkError):pass	
class	PRO_TK_USER_ABORT	(PtkError):pass	
class	PRO_TK_E_NOT_FOUND	(PtkError):pass	
class	PRO_TK_E_FOUND	(PtkError):pass	
class	PRO_TK_LINE_TOO_LONG	(PtkError):pass	
class	PRO_TK_CONTINUE	(PtkError):pass	
class	PRO_TK_BAD_CONTEXT	(PtkError):pass	
class	PRO_TK_NOT_IMPLEMENTED	(PtkError):pass	
class	PRO_TK_OUT_OF_MEMORY	(PtkError):pass	
class	PRO_TK_COMM_ERROR	(PtkError):pass	
class	PRO_TK_NO_CHANGE	(PtkError):pass	
class	PRO_TK_SUPP_PARENTS	(PtkError):pass	
class	PRO_TK_PICK_ABOVE	(PtkError):pass	
class	PRO_TK_INVALID_DIR	(PtkError):pass	
class	PRO_TK_INVALID_FILE	(PtkError):pass	
class	PRO_TK_CANT_WRITE	(PtkError):pass	
class	PRO_TK_INVALID_TYPE	(PtkError):pass	
class	PRO_TK_INVALID_PTR	(PtkError):pass	
class	PRO_TK_UNAV_SEC	(PtkError):pass	
class	PRO_TK_INVALID_MATRIX	(PtkError):pass	
class	PRO_TK_INVALID_NAME	(PtkError):pass	
class	PRO_TK_NOT_EXIST	(PtkError):pass	
class	PRO_TK_CANT_OPEN	(PtkError):pass	
class	PRO_TK_ABORT	(PtkError):pass	
class	PRO_TK_NOT_VALID	(PtkError):pass	
class	PRO_TK_INVALID_ITEM	(PtkError):pass	
class	PRO_TK_MSG_NOT_FOUND	(PtkError):pass	
class	PRO_TK_MSG_NO_TRANS	(PtkError):pass	
class	PRO_TK_MSG_FMT_ERROR	(PtkError):pass	
class	PRO_TK_MSG_USER_QUIT	(PtkError):pass	
class	PRO_TK_MSG_TOO_LONG	(PtkError):pass	
class	PRO_TK_CANT_ACCESS	(PtkError):pass	
class	PRO_TK_OBSOLETE_FUNC	(PtkError):pass	
class	PRO_TK_NO_COORD_SYSTEM	(PtkError):pass	
class	PRO_TK_E_AMBIGUOUS	(PtkError):pass	
class	PRO_TK_E_DEADLOCK	(PtkError):pass	
class	PRO_TK_E_BUSY	(PtkError):pass	
class	PRO_TK_E_IN_USE	(PtkError):pass	
class	PRO_TK_NO_LICENSE	(PtkError):pass	
class	PRO_TK_BSPL_UNSUITABLE_DEGREE	(PtkError):pass	
class	PRO_TK_BSPL_NON_STD_END_KNOTS	(PtkError):pass	
class	PRO_TK_BSPL_MULTI_INNER_KNOTS	(PtkError):pass	
class	PRO_TK_BAD_SRF_CRV	(PtkError):pass	
class	PRO_TK_EMPTY	(PtkError):pass	
class	PRO_TK_BAD_DIM_ATTACH	(PtkError):pass	
class	PRO_TK_NOT_DISPLAYED	(PtkError):pass	
class	PRO_TK_CANT_MODIFY	(PtkError):pass	
class	PRO_TK_CHECKOUT_CONFLICT	(PtkError):pass	
class	PRO_TK_CRE_VIEW_BAD_SHEET	(PtkError):pass	
class	PRO_TK_CRE_VIEW_BAD_MODEL	(PtkError):pass	
class	PRO_TK_CRE_VIEW_BAD_PARENT	(PtkError):pass	
class	PRO_TK_CRE_VIEW_BAD_TYPE	(PtkError):pass	
class	PRO_TK_CRE_VIEW_BAD_EXPLODE	(PtkError):pass	
class	PRO_TK_UNATTACHED_FEATS	(PtkError):pass	
class	PRO_TK_REGEN_AGAIN	(PtkError):pass	
class	PRO_TK_DWGCREATE_ERRORS	(PtkError):pass	
class	PRO_TK_UNSUPPORTED	(PtkError):pass	
class	PRO_TK_NO_PERMISSION	(PtkError):pass	
class	PRO_TK_AUTHENTICATION_FAILURE	(PtkError):pass	
class	PRO_TK_OUTDATED	(PtkError):pass	
class	PRO_TK_INCOMPLETE	(PtkError):pass	
class	PRO_TK_CHECK_OMITTED	(PtkError):pass	
class	PRO_TK_APP_TOO_OLD	(PtkError):pass	
class	PRO_TK_APP_BAD_DATAPATH	(PtkError):pass	
class	PRO_TK_APP_BAD_ENCODING	(PtkError):pass	
class	PRO_TK_APP_NO_LICENSE	(PtkError):pass	
class	PRO_TK_APP_XS_CALLBACKS	(PtkError):pass	
class	PRO_TK_APP_STARTUP_FAIL	(PtkError):pass	
class	PRO_TK_APP_INIT_FAIL	(PtkError):pass	
class	PRO_TK_APP_VERSION_MISMATCH	(PtkError):pass	
class	PRO_TK_APP_COMM_FAILURE	(PtkError):pass	
class	PRO_TK_APP_NEW_VERSION	(PtkError):pass	
class	PRO_TK_APP_UNLOCK	(PtkError):pass	

Errors={
        -1	:	PRO_TK_GENERAL_ERROR	,
        -2	:	PRO_TK_BAD_INPUTS	,
        -3	:	PRO_TK_USER_ABORT	,
        -4	:	PRO_TK_E_NOT_FOUND	,
        -5	:	PRO_TK_E_FOUND	,
        -6	:	PRO_TK_LINE_TOO_LONG	,
        -7	:	PRO_TK_CONTINUE	,
        -8	:	PRO_TK_BAD_CONTEXT	,
        -9	:	PRO_TK_NOT_IMPLEMENTED	,
        -10	:	PRO_TK_OUT_OF_MEMORY	,
        -11	:	PRO_TK_COMM_ERROR	,
        -12	:	PRO_TK_NO_CHANGE	,
        -13	:	PRO_TK_SUPP_PARENTS	,
        -14	:	PRO_TK_PICK_ABOVE	,
        -15	:	PRO_TK_INVALID_DIR	,
        -16	:	PRO_TK_INVALID_FILE	,
        -17	:	PRO_TK_CANT_WRITE	,
        -18	:	PRO_TK_INVALID_TYPE	,
        -19	:	PRO_TK_INVALID_PTR	,
        -20	:	PRO_TK_UNAV_SEC	,
        -21	:	PRO_TK_INVALID_MATRIX	,
        -22	:	PRO_TK_INVALID_NAME	,
        -23	:	PRO_TK_NOT_EXIST	,
        -24	:	PRO_TK_CANT_OPEN	,
        -25	:	PRO_TK_ABORT	,
        -26	:	PRO_TK_NOT_VALID	,
        -27	:	PRO_TK_INVALID_ITEM	,
        -28	:	PRO_TK_MSG_NOT_FOUND	,
        -29	:	PRO_TK_MSG_NO_TRANS	,
        -30	:	PRO_TK_MSG_FMT_ERROR	,
        -31	:	PRO_TK_MSG_USER_QUIT	,
        -32	:	PRO_TK_MSG_TOO_LONG	,
        -33	:	PRO_TK_CANT_ACCESS	,
        -34	:	PRO_TK_OBSOLETE_FUNC	,
        -35	:	PRO_TK_NO_COORD_SYSTEM	,
        -36	:	PRO_TK_E_AMBIGUOUS	,
        -37	:	PRO_TK_E_DEADLOCK	,
        -38	:	PRO_TK_E_BUSY	,
        -39	:	PRO_TK_E_IN_USE	,
        -40	:	PRO_TK_NO_LICENSE	,
        -41	:	PRO_TK_BSPL_UNSUITABLE_DEGREE	,
        -42	:	PRO_TK_BSPL_NON_STD_END_KNOTS	,
        -43	:	PRO_TK_BSPL_MULTI_INNER_KNOTS	,
        -44	:	PRO_TK_BAD_SRF_CRV	,
        -45	:	PRO_TK_EMPTY	,
        -46	:	PRO_TK_BAD_DIM_ATTACH	,
        -47	:	PRO_TK_NOT_DISPLAYED	,
        -48	:	PRO_TK_CANT_MODIFY	,
        -49	:	PRO_TK_CHECKOUT_CONFLICT	,
        -50	:	PRO_TK_CRE_VIEW_BAD_SHEET	,
        -51	:	PRO_TK_CRE_VIEW_BAD_MODEL	,
        -52	:	PRO_TK_CRE_VIEW_BAD_PARENT	,
        -53	:	PRO_TK_CRE_VIEW_BAD_TYPE	,
        -54	:	PRO_TK_CRE_VIEW_BAD_EXPLODE	,
        -55	:	PRO_TK_UNATTACHED_FEATS	,
        -56	:	PRO_TK_REGEN_AGAIN	,
        -57	:	PRO_TK_DWGCREATE_ERRORS	,
        -58	:	PRO_TK_UNSUPPORTED	,
        -59	:	PRO_TK_NO_PERMISSION	,
        -60	:	PRO_TK_AUTHENTICATION_FAILURE	,
        -61	:	PRO_TK_OUTDATED	,
        -62	:	PRO_TK_INCOMPLETE	,
        -63	:	PRO_TK_CHECK_OMITTED	,
        -89	:	PRO_TK_APP_TOO_OLD	,
        -90	:	PRO_TK_APP_BAD_DATAPATH	,
        -91	:	PRO_TK_APP_BAD_ENCODING	,
        -92	:	PRO_TK_APP_NO_LICENSE	,
        -93	:	PRO_TK_APP_XS_CALLBACKS	,
        -94	:	PRO_TK_APP_STARTUP_FAIL	,
        -95	:	PRO_TK_APP_INIT_FAIL	,
        -96	:	PRO_TK_APP_VERSION_MISMATCH	,
        -97	:	PRO_TK_APP_COMM_FAILURE	,
        -98	:	PRO_TK_APP_NEW_VERSION	,
        -99	:	PRO_TK_APP_UNLOCK	

        }

def raisePtkError(err):
    if err in Errors:
        raise Errors[err]
    return
